package com.rongji.dfish.demo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CommPost entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "COMM_POST")
public class CommPost implements java.io.Serializable {

	// Fields

	private String postId;
	private String postTitle;
	private String postContent;
	private String postCreator;
	private Date createTime;
	private String postPlate;
	private String postStatus;
	private String postIsreply;
	private String isTop;
	private Date topTime;

	// Constructors

	/** default constructor */
	public CommPost() {
	}

	/** minimal constructor */
	public CommPost(String postId) {
		this.postId = postId;
	}

	/** full constructor */
	public CommPost(String postId, String postTitle, String postContent,
			String postCreator, Date createTime, String postPlate,
			String postStatus, String postIsreply) {
		this.postId = postId;
		this.postTitle = postTitle;
		this.postContent = postContent;
		this.postCreator = postCreator;
		this.createTime = createTime;
		this.postPlate = postPlate;
		this.postStatus = postStatus;
		this.postIsreply = postIsreply;
	}

	// Property accessors
	@Id
	@Column(name = "POST_ID", unique = true, nullable = false, length = 16)
	public String getPostId() {
		return this.postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	@Column(name = "POST_TITLE")
	public String getPostTitle() {
		return this.postTitle;
	}

	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}

	@Column(name = "POST_CONTENT", length = 4000)
	public String getPostContent() {
		return this.postContent;
	}

	public void setPostContent(String postContent) {
		this.postContent = postContent;
	}

	@Column(name = "POST_CREATOR", length = 16)
	public String getPostCreator() {
		return this.postCreator;
	}

	public void setPostCreator(String postCreator) {
		this.postCreator = postCreator;
	}

	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "POST_PLATE", length = 32)
	public String getPostPlate() {
		return this.postPlate;
	}

	public void setPostPlate(String postPlate) {
		this.postPlate = postPlate;
	}

	@Column(name = "POST_STATUS", length = 1)
	public String getPostStatus() {
		return this.postStatus;
	}

	public void setPostStatus(String postStatus) {
		this.postStatus = postStatus;
	}

	@Column(name = "POST_ISREPLY", length = 1)
	public String getPostIsreply() {
		return this.postIsreply;
	}

	public void setPostIsreply(String postIsreply) {
		this.postIsreply = postIsreply;
	}

	
	@Column(name = "IS_TOP", length = 1)
	public String getIsTop() {
		return isTop;
	}

	public void setIsTop(String isTop) {
		this.isTop = isTop;
	}
	@Column(name = "TOP_TIME", length = 7)
	public Date getTopTime() {
		return topTime;
	}

	public void setTopTime(Date topTime) {
		this.topTime = topTime;
	}
}